@echo off

set heo_mpi_exec=c:\MPICH2\bin\mpiexec.exe

if not exist "%heo_mpi_exec%" (echo ERROR: %heo_mpi_exec% not found
echo Please edit this file and specify the patch where mpirun or mpiexec is installed
goto :eof
)

if "%*"=="" (echo Usage: heo_mpiexec mpi_args
goto :eof
)

"%heo_mpi_exec%" -pwdfile ..\..\..\logins\logins.txt -machinefile ..\..\..\logins\hosts.txt %*
rem the local mode: -localonly -channel shm